/*
 * @Author: yuanming
 * @Date: 2024-08-23 11:22:05
 * @LastEditors: yuanming
 * @LastEditTime: 2024-08-26 10:10:01
 * @Description: fileDescription
 */
import api from '@/api/config'

const install = (Vue) => {
    if (install.installed) { return }

    install.installed = true

    Object.defineProperties(Vue.prototype, {
        // 注意，此处挂载在 Vue 原型的 $api 对象上
        $api: {
            get() {
                return api
            },
        },
    })
}

export default install
